Skip to content

Conversation

@manisto
Copy link

@manisto manisto commented Sep 15, 2025

The HasNumber and HasString conditions for objects would always return true, regardless of whether the array contained the specified value or not. The reason was that the functions referenced a nonexistent variable named __ArrayTools.Temp.

This PR removes all occurrences of this prefix, and now uses the extension scene variable simply named Temp.

An example project where the issue is documented has been attached to this PR.
ArrayToolsTest.zip

@manisto manisto requested a review from a team as a code owner September 15, 2025 19:58
@D8H
Copy link
Contributor

D8H commented Sep 20, 2025

Thank you for the fix. Please increment the revision in the version.

@D8H
Copy link
Contributor

D8H commented Oct 28, 2025

Someone reported the issue and I forgot about this PR. I guess it's already fixed.

@manisto
Copy link
Author

manisto commented Oct 29, 2025

Someone reported the issue and I forgot about this PR. I guess it's already fixed.

* [[ArrayTools] Scene variable __ArrayTools not exposed properly #1867](https://github.com/GDevelopApp/GDevelop-extensions/issues/1867)

Looks like it. :-) It has the same changes, although it also appends a 2 to the variable names.

@D8H
Copy link
Contributor

D8H commented Oct 29, 2025

It’s an action name. The one without the 2 is deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants